<template>
  <dol-cascade-picker
    :options="addressData"
    :value="value"
    @input="input"
    @change="change"
    ref="picker"
  />
</template>

<script>
  import addressData from './addressData'

  export default {
    name: "Dol-address-picker",
    props:{
      value:{type: Array, default:() => []},
    },
    data(){
      return {
        addressData,
      }
    },
    computed:{
    },
    methods:{
      open(){
        this.$refs['picker'].open();
      },
      input(value){
        this.$emit('input', value);
      },
      change(_value, value, index){
        this.$emit('change', _value, value, index);
      },
    }
  }
</script>

<style scoped>

</style>
